package jupd.gui.tray;

import java.awt.AWTException;
import java.awt.Image;
import java.awt.SystemTray;
import java.awt.TrayIcon;
import java.util.List;

public class TrayController {
	private Image icon;
	private List<String> Messages;
	private boolean processMessages;
	private TrayIcon trayIcon;
	
	public TrayController(Image icon) {
		super();
		this.trayIcon = new TrayIcon(icon);
		
	}
	
	public TrayController(TrayIcon trayIcon) {
		this.trayIcon = trayIcon;
	}

	public void addMessage(String msg){
		
	}
	public boolean show(boolean option) throws AWTException{
		SystemTray tray = SystemTray.getSystemTray();
		if(option==true){
			tray.add(trayIcon);
			return true;
		}
		tray.remove(trayIcon);
		return false;
		
	}
}
